import cv2
import matplotlib.pyplot as plt
import numpy as np

img = cv2.imread('D:/python/opencv-processing/laiya.jpg')

# blue_channel = img[:, :, 0]
# green_channel = img[:, :, 1]
# red_channel = img[:, :, 2]

# rgb_img = cv2.merge((blue_channel,green_channel,red_channel))
#
# plt.imshow(rgb_img)
# plt.show()

blue_channel = img[:, :, 0,None]
green_channel = img[:, :, 1,None]
red_channel = img[:, :, 2,None]